Function works on one module but not multiple modules

Some background first, I have one module that contains customer information - Name and Customer ID. The customer number is stored in an enumerated attribute. I wrote a script that updates an enumeration in several others to match the enumeration in the Customer Info module and that works fine. I tried to update the script so that the other modules enumeration would contain the customer ID as well as their Name. When I updated the script, it worked fine when I was only updating one other module to match. I added several more modules to be updated in the same way, but the script still only updates the one module. I tried commenting out all module but one (not the one that was working before) and it still doesnt work. There arent any DXL errors or anything, it just doesnt update the attribute type. the function looks something like this
void update(Module mod1, Module mod2){
// code here
}

When I call the function once it works, when I call it two or more times, it fails to update all modules (it only updates the original second module, regardless of the order of function calls)

Any thoughts? Thanks!
SystemAdmin - Tue Jun 14 18:02:50 EDT 2011

Re: Function works on one module but not multiple modules
SystemAdmin - Tue Jun 14 18:56:48 EDT 2011

I wasn't setting the current module correctly, got it all straightened out.

Re: Function works on one module but not multiple modules
SystemAdmin - Tue Jun 14 20:56:52 EDT 2011

SystemAdmin - Tue Jun 14 18:56:48 EDT 2011
I wasn't setting the current module correctly, got it all straightened out.

Suggest you have a look at the following very recent thread where I supplied a script developed by Telelogic to do this sort of thing for you - it might offer a more scalable and robust way to do this kind of thing.

https://www.ibm.com/developerworks/forums/thread.jspa?threadID=373896&tstart=0


Paul Miller
Melbourne, Australia

Re: Function works on one module but not multiple modules
SystemAdmin - Wed Jun 15 15:16:33 EDT 2011

SystemAdmin - Tue Jun 14 20:56:52 EDT 2011
Suggest you have a look at the following very recent thread where I supplied a script developed by Telelogic to do this sort of thing for you - it might offer a more scalable and robust way to do this kind of thing.

https://www.ibm.com/developerworks/forums/thread.jspa?threadID=373896&tstart=0


Paul Miller
Melbourne, Australia

Thanks Paul!